package cn.kgc.springcloud.nacos.controller;

import cn.kgc.springcloud.nacos.client.HystrixClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: mosin
 * @version: v1.0  2022/8/22
 */
@RestController
@RequestMapping("nacos")
public class NacosController {

    @Autowired
    private HystrixClient hystrixClient;

    @RequestMapping("t1")
    public  String test1(Integer id){
        String s = hystrixClient.test1(id);
        return "nacos ok " +s;
    }

}
